﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Table_Dal
{
    public static class pub
    {
        public static bool IsInt(this string s)
        {
            int n = 0;
            if (int.TryParse(s, out n))
            {
                return true;
            }
            else return false;
        }
        public static bool IsDateTime(this string s)
        {
            DateTime n = DateTime.Now.Date;
            if (DateTime.TryParse(s, out n))
            {
                return true;
            }
            else return false;
        }
        public static bool IsTime(this string s)
        {
            DateTime n;
            if (DateTime.TryParse(s, out n))
            {
                return true;
            }
            else return false;
        }
        public static bool IsExsist(this string s)
        {
            if (System.IO.File.Exists(s))
                return true;
            else return false;
        }
        
    }
}
